﻿@model ContactManagement.Models.DetailsUserAdminModel
@{
    ViewBag.Title = Resources.PageTitles.UserDetailsRESX;
}
<h2>@Resources.PageTitles.DetailsRESX: @Model.Firstname @Model.Lastname</h2>
<p>
    @Html.ShowCustomMessage()
</p>
<fieldset>
    <legend>@Resources.PageTitles.UserDetailsRESX</legend>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.UserTitle)
        </div>
        <div class="display-field">
            @Html.Categories().DisplayForCategory(Model.UserTitle)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Firstname)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Firstname)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Lastname)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Lastname)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.UserName)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Category)
        </div>
        <div class="display-field">
            @Html.Categories().DisplayForCategory(Model.Category)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.UserType)
        </div>
        <div class="display-field">
            @Html.DisplayForUserType(Model.UserType)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.IsActiveUser)
        </div>
        <div class="display-field">
            @Html.DisplayForYesNo(Model.IsActiveUser)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Logintries)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Logintries)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Street)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Street)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.HouseNumber)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.HouseNumber)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.ZipCode)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.ZipCode)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.City)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Handy)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Handy)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <div class="view-item">
        <div class="display-label">
            @Html.LabelFor(model => model.Birthdate)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Birthdate)
        </div>
    </div>
    <div class="clear-all">
    </div>
    <p>
        @Html.DynamicDataType().DisplayFor(Model.DynamicData, EFDataModel.Enums.EFModules.Member)
    </p>
</fieldset>
<fieldset>
    <legend>@Resources.PageTitles.UserRightsRESX</legend>
    <p>
        @Html.Users().ShowUserRights(Model.UserRights)
    </p>
    @if (WebRights.Right().Check(EFDataModel.Enums.EUserRights.SetUserRights))
    { @Html.ActionLink(Resources.Navigation.EditUserRightsRESX, EActionUser.UserEditUserRights.ToString(), new { id = Model.UserId }) }
</fieldset>
<fieldset>
    <legend>@Resources.PageTitles.UserGroupsRESX</legend>
    <p>
        @Html.Users().ShowUserGroups(Model.UserGroups)
    </p>
    @if (WebRights.Right().Check(EFDataModel.Enums.EUserRights.SetUserGroups))
    { @Html.ActionLink(Resources.Navigation.EditUserGroupsRESX, EActionUser.UserEditUserGroups.ToString(), new { id = Model.UserId }) }
</fieldset>
<p>
    @Html.ActionLink(Resources.Navigation.BackToListRESX, EActionUser.UserList.ToString())
    @if(WebRights.Right().Check(EFDataModel.Enums.EUserRights.UserEdit)) { <text>|</text>  @Html.ActionLink(Resources.Navigation.EditUserRESX, EActionUser.UserEdit.ToString(), new { id = Model.UserId }) }
    @if (WebRights.Right().Check(EFDataModel.Enums.EUserRights.SetUserPassword)) { <text>|</text>  @Html.ActionLink(Resources.Navigation.CreateUserPasswordRESX, EActionUser.UserSendNewPassword.ToString(), new { id = Model.UserId }) }
</p>
